package com.hu.bgp.client.gin;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.inject.Provider;
import com.hu.bgp.client.rpc.BgpService;
import com.hu.bgp.client.rpc.BgpServiceAsync;

public class BgpServiceProvider implements Provider<BgpServiceAsync>
{
	
	public BgpServiceAsync get()
	{
		BgpServiceAsync bgpService = GWT.create(BgpService.class);
		ServiceDefTarget target = (ServiceDefTarget) bgpService;
		target.setServiceEntryPoint("/bgp/bgpService");
		return bgpService;
	}
}
